]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Bluetooth: don't restrict the length of non numeric PINs
authorGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 31 Aug 2012 17:56:45 +0000 (19:56 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 5 Sep 2012 11:15:33 +0000 (13:15 +0200)
The protocol restriction is only for numeric PINs (passkeys, in bluez
jargon). For passwords, any length is allowed.

https://bugzilla.gnome.org/show_bug.cgi?id=683356

js/ui/status/bluetooth.js

index 3e043c375597f4ab0b94620821c3dbab72d94bc9..22a1b665500539bb70362510cd2aa5c7e5fe7396 100644 (file)
@@ -456,7 +456,10 @@ const PinNotification = new Lang.Class({
 
     _canActivateOkButton: function() {
         // PINs have a fixed length of 6
-        return this._entry.clutter_text.text.length == 6;
+        if (this._numeric)
+            return this._entry.clutter_text.text.length == 6;
+        else
+            return true;
     },
 
     grabFocus: function(lockTray) {